#include "deal.h"

Deal::Deal(QObject *parent) : QObject(parent)
{
    timer = new QTimer(this);
    connect(timer,&QTimer::timeout,this,&Deal::timerSlot);
    timer->start(3000);
    qDebug() << "deal cre";
}
Deal::~Deal(){
    qDebug() << "deal del";
}

void Deal::lunch1(){
    qDebug() << "1:" << QThread::currentThreadId();
}

void Deal::lunch2(){
    qDebug() << "2:" << QThread::currentThreadId();
}

void Deal::lunch3(){
    qDebug() << "3:" << QThread::currentThreadId();
}
void Deal::timerSlot(){
    qDebug() << "4:" << QThread::currentThreadId();
}
